from time import sleep

from base.base import Base
from utils.generate_logs_util import get_log
logger = get_log(__name__)


class page_select_account(Base):
    # 固定当前页面在YAML中的节点名
    account_no_page="account_no_page"

    def __init__(self, driver, yaml_path):
        # 调用父类初始化方法，传入固定节点名
        super().__init__(driver, yaml_path, self.account_no_page)

    # 登录页特有业务方法（基于父类通用方法实现）
    def account_no_select(self,account_no):
        logger.info('点击账户管理')
        self.click("account_manage")  # 使用YAML中定义的键名
        logger.info('点击账户信息')
        self.click("account_info_btn")
        logger.info('输入账户信息')
        self.send_keys("account_no_send",account_no)
        logger.info('点击查询')
        self.click("account_search_btn")
        logger.info('查询成功')




